import React, { Component } from "react";
import MyContext from "../context/Index";

export default class Index extends Component {
  render() {
    return (
      <div>
        <MyContext.Consumer>
          {
            value => (
              <div>{
                value.name
                }</div>
            )
          }
        </MyContext.Consumer>
      </div>
    );
  }
}
